When the network connection breaks while you work in an ssh session or the ssh
server terminates – maybe due to a reboot – the ssh session freezes and stays
frozen for a long time. There is an ssh keybinding to stop such a frozen
session: First press return
, then ~
and finally .
– this will immediately
terminate the connection and exit the client.
en shorterhacks ssh
Shorter Hacksconsists of tips and tricks for Linux nerds. Flags, hacks, and features of everyday tools that you might not know already, but that will enrich your life. I currently have a list of around 40 hacks I collected and plan to publish them roughly weekly. In order for this series to continue, please send me your best trick(s). The focus is not on fancy new tools or extensive rc-file content, but little known features in software most people already use. Send them to .